﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModernUIApp1
{
    public static class ApplicationState
    {
        private static Dictionary<string, object> _values =
                   new Dictionary<string, object>();
        public static void SetValue(string key, object value)
        {
            _values.Add(key, value);
        }
        public static Object GetValue(string value)
        {
            if (_values.ContainsKey(value))
            {
                return _values[value];
            }
            else
            {
                return null;
            }
        }
    }
}
